 |
API Documentation
|
|
|
Item * getParentItem() const
unsigned int getChildCount() const
Abstracts an image to be used within the component.
Definition: Image.h:12
void setParentItem(Item *item)
void setIcon(Image *image)
virtual void changeItemLabel(Item *toChange, const nkMemory::StringView &label)
bool getCollapsed() const
void * getAttachedData() const
void setAttachedData(void *data)
virtual Item * insertItem(const nkMemory::StringView &text, void *data, Item *parent=nullptr)
bool getSelectOnRightClick() const
A graphical tree view window.
Definition: TreeView.h:12
virtual Item * getSelectedItem()=0
void setSelectionCallback(std::function< void(TreeView *)> value)
void selectItemFromRelativeCursor(const nkMaths::Point &relCoords)
Holds information of a tree view item.
Definition: TreeView.h:19
virtual void exportIntrospection(nkExport::Node *rootNode) override
virtual void setCollapsed(bool value)
Item * addChild(Item *child)
TreeView * getParentTree() const
Base class for any graphical component.
Definition: Component.h:12
virtual Item * getItemAtAbsoluteCursor(const nkMaths::Point &absCoords)=0
virtual void importClassFromTree(nkExport::Node *rootNode) override
virtual void clearItems()
std::function< void(TreeView *)> getSelectionCallback() const
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
The main system of the component.
Definition: MainSystem.h:18
Represents a 2D Point.
Definition: Point.h:12
TreeView(MainSystem *parentSystem)
virtual void selectItem(Item *item)=0
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
virtual void deleteItem(Item *toDelete, bool keepChildrenOnUpper=false)
void disavowChild(Item *child)
virtual Item * getItemAtRelativeCursor(const nkMaths::Point &relCoords)=0
void selectItemFromItsData(void *data)
nkMemory::StringView getText() const
void setParentTree(TreeView *parent)
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
void collapseAll(bool status)
Item * getItemFromData(void *data) const
void exportIntrospection(nkExport::Node *rootNode)
void setSelectionOnRightClick(bool value)
Item * getChild(unsigned int index) const
void selectItemFromAbsoluteCursor(const nkMaths::Point &absCoords)
void setText(const nkMemory::StringView &text)